Just as it does in mathematics, operator precedence in VectorScript controls the order in which operations are performed. Operators having a higher precedence have their operations performed before those having a lower precedence. In the expression
the multiplication operator ( * ) has higher precedence than the addition operator, so the multiplication operation is performed before the addition. The assignment operator (
= ) has the lowest precedence of all the operators, so the association, or assignment, of the value to the variable
p occurs only after the other operations are completed.